<template>
  <el-aside>
    <y-button @dragstart="handleStartDrag" draggable="true"></y-button>
  </el-aside>
</template>

<script lang="ts" setup>

const handleStartDrag = (e: any) => {
  console.log(e);
  e.dataTransfer.setData('buttonConfig', 'yButton')

  
  // e.dataTransfer.effectAllowed = 'move'
  console.log('handleDrag')
}
</script>
<style lang="scss" scoped>
</style>